package online.longzipeng.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import online.longzipeng.commen.dynamic.datasource.annotation.DataSource;
import online.longzipeng.entity.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * @author lzp
 */
@Mapper
public interface UserMapper extends BaseMapper<User> {

	//	@DataSource("lzp1")
	@Select("SELECT * FROM user LIMIT 1")
	User getUser();


	// @DS("lzp3")
	 @DataSource("lzp3")
	@Select("SELECT * FROM user LIMIT 1")
	User getUser2();

}

